home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group02b.txt
/
000103_icon-group-sender_Thu Nov 7 08:10:46 2002.msg
< prev
next >
Wrap
Internet Message Format
|
2003-01-02
|
2KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id gA7F9Sw04688
for icon-group-addresses; Thu, 7 Nov 2002 08:09:28 -0700 (MST)
Message-Id: <200211071509.gA7F9Sw04688@baskerville.CS.Arizona.EDU>
To: "WebsiteWill" <websitewill@cox-internet.com>
Cc: icon-group@cs.arizona.edu
Subject: Re: Question about Icon
From: Ed L Cashin <ecashin@uga.edu>
Date: 06 Nov 2002 19:41:10 -0500
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
"WebsiteWill" <websitewill@cox-internet.com> writes:
> Is there a way to have an Icon Program take as input a Scheme
> program as a basic string, do some conversions to that string and
> then output the new string to a Scheme interpreter/compiler and run
> it then finally take the output from Scheme as a new set of input
> into the same Icon Program?
I was interested in your question, so I looked up info on pipes in
icon, but it looks like there is no easy way to launch another process
inside of icon and then do both writing to and reading from the another
process.
(Perl has to jump through hoops to support this -- see the perlipc
manpage.)
Please anyone chime in if there is an easy way to launch a process in
icon code and then do I/O to and from the process.
You could, of course, manipulate the string, write it to a file on
disk, run the scheme interpreter from icon with popen or open with the
pipe mode (so that the scheme interpreter is reading from the file),
and then read the output from the scheme interpreter through the
pipe's filehandle.
--
--Ed L Cashin | PGP public key:
ecashin@uga.edu | http://noserose.net/e/pgp/